<template>
    <div>
        child
        {{title}}
        <!-- <button @click="changeTitle">change</button> -->
        <!-- <button @click="$emit('update:visible',true)">change open</button> -->

        <input type="text" :value="value" @input="(e)=>$emit('input',e.target.value)">
    </div>
</template>

<script>
export default {
    props:{
        title:{
            type:String,
            default:''
        },
        value:{
            type:String,
            default:''
        }
    },
    methods:{
        changeTitle(){
            this.$emit('update:title','hell2')
        }
    }
}
</script>